package com.zhiling.www.feignclient;

import com.zhiling.www.entity.Result;
import com.zhiling.www.entity.User;
import org.springframework.stereotype.Component;

@Component
public class UserClientImpl implements UserClient {

    @Override
    public Result updateMoney(User user) {
        Result result = new Result();
        result.setCode(101);  //服务走丢
        result.setMsg("服务走丢,请稍后再试");
        return result;
    }

    @Override
    public Result findUser(Integer userId) {
        Result result = new Result();
        result.setCode(101);  //服务走丢
        result.setMsg("服务走丢,请稍后再试");
        return result;
    }
}
